goog.provide('dkpoints.tests.mocks');

goog.require('dkpoints.models.Raider');


/**
 * Returns a mock Path object.
 * (Actually, it's a real path object, but I like this better than object
 * literals all over my tests.)
 * @param {string} hash The full URL hash.
 * @param {string} path The handled path from the URL hash.
 * @param {string} params The parameters for this path.
 * @param {*} handler Anything, depending on whether it's needed or not.
 * @return {dkpoints.path.Path} The mock path object.
 */
dkpoints.tests.mocks.getMockPath = function(hash, path, params, handler) {
  return {
    hash: hash,
    path: path,
    params: params,
    handler: handler
  };
};


/**
 * Get an array of Raider objects.
 * @return {!Array.<dkpoints.models.Raider>} A new array of Raiders.
 */
dkpoints.tests.mocks.getRaiderArray = function() {
  var Raider = dkpoints.models.Raider;

  return [
    new Raider('Amira', Raider.Class.WARLOCK),
    new Raider('Antec', Raider.Class.WARLOCK),
    new Raider('Avatré', Raider.Class.PRIEST),
    new Raider('Bakayarou', Raider.Class.ROGUE),
    new Raider('Cobi', Raider.Class.DEATHKNIGHT),
    new Raider('Crackseed', Raider.Class.HUNTER),
    new Raider('Darktee', Raider.Class.DEATHKNIGHT),
    new Raider('Drakengard', Raider.Class.HUNTER),
    new Raider('Kiwifruit', Raider.Class.PRIEST),
    new Raider('Kuroneko', Raider.Class.WARRIOR),
    new Raider('Leilei', Raider.Class.PRIEST),
    new Raider('Leoban', Raider.Class.MAGE),
    new Raider('Machinshin', Raider.Class.SHAMAN),
    new Raider('Moohamed', Raider.Class.DRUID),
    new Raider('Mâwt', Raider.Class.DRUID),
    new Raider('Narcis', Raider.Class.MAGE),
    new Raider('Nïobe', Raider.Class.WARRIOR),
    new Raider('Phaetoc', Raider.Class.PALADIN),
    new Raider('Phuska', Raider.Class.ROGUE),
    new Raider('Piorun', Raider.Class.SHAMAN),
    new Raider('Stinkweasel', Raider.Class.ROGUE),
    new Raider('Tectuktitlay', Raider.Class.PRIEST),
    new Raider('Tog', Raider.Class.DRUID),
    new Raider('Xanidus', Raider.Class.PALADIN),
    new Raider('Zalos', Raider.Class.DEATHKNIGHT)
  ];
};
